import React from "react";
// children 属性
class Son extends React.Component{
    render() {
        return(
            <div>
                子节点元素：{this.props.children}
            </div>
        )
    }
}


class Father extends React.Component{
    render(){
        return(
            <div>
                <Son>大头儿子</Son>
            </div>   
        )
    }
}

export default Father